package com.simple.business.domain.vo.graph;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc 图形返回格式
 * @Author Simple
 * @Date 2024/11/15 14:02
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GraphVO {

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("分值")
    private Double score;

    @ApiModelProperty("左边名称")
    private String leftName;
    @ApiModelProperty("左边分值")
    private Double leftScore;
    @ApiModelProperty("右边名称")
    private String rightName;
    @ApiModelProperty("右边分值")
    private Double rightScore;

    @ApiModelProperty("类型")
    private String graphType;

    @ApiModelProperty("图像")
    private String userAvatar;

    public GraphVO(String name) {
        this.name = name;
    }

    public GraphVO(String name, Double score) {
        this.name = name;
        this.score = score;
    }

    public GraphVO(String name, Double score, String graphType) {
        this.name = name;
        this.score = score;
        this.graphType = graphType;
    }

    public GraphVO(String leftName, Double leftScore, String rightName, Double rightScore) {
        this.leftName = leftName;
        this.leftScore = leftScore;
        this.rightName = rightName;
        this.rightScore = rightScore;
    }
}
